/*
 * Member.java
 *
 * Created on February 17, 2007, 9:34 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package edu.byu.isys413.samlam;

import java.util.Date;
import java.util.List;

/**
 * Member
 * @author Sam
 */
public class Member extends BusinessObject{
    private String CreditCard = "";
    private int expmonth = 0;
    private int expyear = 0;
    private double balance = 0;
    private List<AreaOfInterest> arealist;
    private boolean areasSet = false;
    private boolean customerSet = false;
    private Customer customer;
    
    
    /**
     * Creates a new instance of Member
     * @param id id
     */
    public Member(String id) {
        super(id);
    }


    /**
     * get credit card
     * @return get credit card
     */
    public String getCreditCard() {
        return CreditCard;
    }

    /**
     * set credit card
     * @param CreditCard credit card
     */
    public void setCreditCard(String CreditCard) {
        this.CreditCard = CreditCard;
        this.setDirty(true);
    }

    /**
     * get exp
     * @return get exp month
     */
    public int getExpmonth() {
        return expmonth;
    }

    /**
     * set experation month
     * @param expmonth exp month
     */
    public void setExpmonth(int expmonth) {
        this.expmonth = expmonth;
        this.setDirty(true);
    }

    /**
     * get balance
     * @return get balance
     */
    public double getBalance() {
        return balance;
    }

    /**
     * set balance
     * @param balance balance
     */
    public void setBalance(double balance) {
        this.balance = balance;
        this.setDirty(true);
    }

    /**
     * get area of interest
     * @return get area of interest
     */
    public List<AreaOfInterest> getArealist() {
        return arealist;
    }

    /**
     * set area of interest list
     * @param arealist area of interest list
     */
    public void setArealist(List<AreaOfInterest> arealist) {
        this.arealist = arealist;
        this.setAreasSet(true);
        this.setDirty(true);
    }

    /**
     * get customer
     * @return get customer
     */
    public Customer getCustomer() {
        return customer;
    }

    /**
     * set the customer
     * @see returns the customer
     * @param customer sets the customer
     */
    public void setCustomer(Customer customer) {
        this.customer = customer;
        this.setDirty(true);
    }

    /**
     * get the year it expires
     * @return expiration year
     */
    public int getExpyear() {
        return expyear;
    }

    /**
     * sets the expiration year
     * @param expyear expiration year
     */
    public void setExpyear(int expyear) {
        this.expyear = expyear;
        this.setDirty(true);
    }

    /**
     * asks if the areas of interest are set
     * @return boolean true or false
     */
    public boolean isAreasSet() {
        return areasSet;
    }

    /**
     * sets the area
     * @param areasSet set area of interest
     */
    public void setAreasSet(boolean areasSet) {
        this.areasSet = areasSet;
    }

    
    
}
